<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>[{$module_title}]{$Think.lang.mod_list_btn_listset} - {$Think.lang.cfg_website}</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	<link href="{$NOW_THEME_URL}/Assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/plugins/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style-metro.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/themes/{:session('skin')}.css" rel="stylesheet" type="text/css" id="style_color"/>
	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN PAGE LEVEL STYLES -->
	<!-- END PAGE LEVEL STYLES -->
	<link rel="shortcut icon" href="favicon.ico" />
    <style type="text/css">
		.table_addColumn {
			border:#CCC 1px solid;
			margin-bottom:20px;
			border-bottom:#09C 3px solid;
		}
		.table_addColumn tr td {
			padding:5px;
			border-bottom:#CCC 1px dotted;
		}
		.table_addColumn .th {
			text-align:center;
			font-weight:bold;
		}
	</style>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
	<!-- BEGIN HEADER -->
	<include file="Public:header" />
	<!-- END HEADER -->
	<!-- BEGIN CONTAINER -->
	<div class="page-container">
		<!-- BEGIN SIDEBAR -->
		<div class="page-sidebar nav-collapse collapse">
			<!-- BEGIN SIDEBAR MENU -->        
			<ul class="page-sidebar-menu">
            	<li>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
					<div class="sidebar-toggler hidden-phone"></div>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
				</li>
               {$menu_tree}
            </ul>
			<!-- END SIDEBAR MENU -->
		</div>
		<!-- END SIDEBAR -->
		<!-- BEGIN PAGE -->
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<div id="portlet-config" class="modal hide">
				<div class="modal-header">
					<button data-dismiss="modal" class="close" type="button"></button>
					<h3>portlet Settings</h3>
				</div>
				<div class="modal-body">
					<p>Here will be a configuration form</p>
			  </div>
			</div>
			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- BEGIN PAGE CONTAINER-->
			<div class="container-fluid">
				<!-- BEGIN PAGE HEADER-->   
			  <div class="row-fluid">
					<div class="span12">
                    	<div class="clear">&nbsp;</div>                        
						<ul class="breadcrumb">
							<li>
								<i class="icon-home"></i>
								<a href="__APP__">{$Think.lang.cfg_page_home}</a> 
								<span class="icon-angle-right"></span>
							</li>
							<li>
								<a href="__URL__">{$Think.lang.mod_page_title}</a> 
								<span class="icon-angle-right"></span>
						  </li>
							<li><a href="#">[{$module_title}]{$Think.lang.mod_list_btn_listset}</a></li>
						</ul>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN VALIDATION STATES-->
						<div class="portlet box purple">
							<div class="portlet-title">
								<div class="caption"><i class="icon-plus"></i>[{$module_title}]{$Think.lang.mod_list_btn_listset}</div>
								<div class="tools">
									<a href="javascript:;" class="collapse"></a>
								</div>
							</div>
							<div class="portlet-body form">
								<!-- BEGIN FORM-->
								<form action="__URL__/listedit" method="post" id="artAddFrom" 
                                 class="form-horizontal form-bordered form-row-stripped">
									<div class="alert alert-error hide">
										<button class="close" data-dismiss="alert"></button>
										{$Think.lang.cfg_form_err_allform}
									</div>
									<div class="alert alert-success hide">
										<button class="close" data-dismiss="alert"></button>
										{$Think.lang.cfg_form_ok_allform}
									</div>
                                    <div class="tabbable tabbable-custom">
                                        <div class="control-group">
                                                <label class="control-label">{$Think.lang.mod_listedit_form_btn_set}
                                                <span class="required">*</span></label>
                                                <div class="controls">
	<label class="checkbox">
    <input type="checkbox" value="add" name="edit_data[list_attr][toolbar][]" <?php if(array_search('add',$edit_data['list_attr']['toolbar'])!==false){echo "checked='checked'";} ?>> {$Think.lang.mod_listedit_form_toolbar_add}
    </label>
    <label class="checkbox">
    <input type="checkbox" value="pdel" name="edit_data[list_attr][toolbar][]" <?php if(array_search('pdel',$edit_data['list_attr']['toolbar'])!==false){echo "checked='checked'";} ?>> {$Think.lang.mod_listedit_form_toolbar_pdel}
    </label>                                               
                                                </div>
                                            </div>                                     
                                            <div class="control-group">
                                                <label class="control-label">{$Think.lang.mod_listedit_form_lang_set}
                                                <span class="required">*</span></label>
                                                <div class="controls">
	<label class="radio">
    <input type="radio" value="1" name="edit_data[list_attr][have_lang]" <?php if($edit_data['list_attr']['have_lang']==1){echo "checked='checked'";} ?>> {$Think.lang.cfg_form_tis_have}
    </label>
    
    <label class="radio">
    <input type="radio" value="2" name="edit_data[list_attr][have_lang]" <?php if($edit_data['list_attr']['have_lang']==2){echo "checked='checked'";} ?>> {$Think.lang.cfg_form_tis_none}
    </label>
                                                 </div>
                                            </div>
                                            
                                            <div class="control-group">
                                                <label class="control-label">{$Think.lang.mod_listedit_form_search}
                                                <span class="required">*</span></label>
                                                <div class="controls">
    <label class="radio">
    <input type="radio" value="1" name="edit_data[list_attr][have_search]" <?php if($edit_data['list_attr']['have_search']==1){echo "checked='checked'";} ?>> {$Think.lang.cfg_form_tis_have}
    </label>
    
    <label class="radio">
    <input type="radio" value="2" name="edit_data[list_attr][have_search]" <?php if($edit_data['list_attr']['have_search']==2){echo "checked='checked'";} ?>> {$Think.lang.cfg_form_tis_none}
    </label>
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label">{$Think.lang.mod_listedit_form_pageno}
                                                <span class="required">*</span></label>
                                                <div class="controls">
                                                    <input type="text" name="edit_data[list_attr][pageno]" data-required="1" class="span6 m-wrap" value="{$edit_data['list_attr']['pageno']}"/>
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label">{$Think.lang.mod_listedit_form_field}</label>
                                                <div class="controls">
<a class="btn blue" id="addColumn"><i class="icon-plus"></i>{$Think.lang.cfg_list_itf_prefix_add}</a>
<div class="clear">&nbsp;</div>
{$table_addColumn}
                                                </div>
                                            </div>
                                    </div>
									<div class="form-actions">
                                        <input type="hidden" name="id" value="{$id}"/>
										<button type="submit" class="btn purple">{$Think.lang.cfg_form_ele_submit}</button>
										<button type="reset" class="btn">{$Think.lang.cfg_form_ele_reset}</button>
									</div>
								</form>
								<!-- END FORM-->
							</div>
						</div>
						<!-- END VALIDATION STATES-->
					</div>
				</div>
				<!-- END PAGE CONTENT-->         
		  </div>
			<!-- END PAGE CONTAINER-->
		</div>
		<!-- END PAGE -->
	</div>
	<!-- END CONTAINER -->
	<!-- BEGIN FOOTER -->
	<include file="Public:footer" />
	<!-- END FOOTER -->
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->
	<script src="__PUBLIC__/Js/jquery.min.js" type="text/javascript"></script>
	<script src="{$NOW_THEME_URL}/Assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>   
	<script src="{$NOW_THEME_URL}/Assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
	<script src="{$NOW_THEME_URL}/Assets/plugins/excanvas.min.js"></script>
	<script src="{$NOW_THEME_URL}/Assets/plugins/respond.min.js"></script>  
	<![endif]-->  
	<script src="{$NOW_THEME_URL}/Assets/plugins/jquery.cookie.min.js" type="text/javascript"></script>
	<!-- END CORE PLUGINS -->
    
    <!-- BEGIN UPLOADPIC-->
    <script type="text/javascript" src="{$NOW_THEME_URL}/Assets/plugins/artdialog/jquery.artdialog.js?skin=bootstrap"></script>
	<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/plugins/artdialog/plugins/iframeTools.js"></script>
    <!-- END UPLOADPIC-->

    <!-- BEGIN PAGE LEVEL STYLES -->
	<script src="{$NOW_THEME_URL}/Assets/scripts/app.js"></script>
	<!-- END PAGE LEVEL STYLES -->    
	<script type="text/javascript">
		var ABS_URL_Theme = "{$NOW_THEME_URL}/";
		//UploadPic STATES CONSTANT
		var ABS_URL = "{$Think.TMPL_URL}/";
		var REL_URL = "{$Think.REL_URL}";
		//UploadPic END CONSTANT
				
		jQuery(document).ready(function() {

		   App.init();
		   
		   var filed_title = {$filed_title};
		   
		   	$('.filedName').live('change',function(){
				if($(this).val()){
					var module_id = $(this).val();
					$(this).parents('.table_addColumn').find('.filed_display').each(function(index, element) {
						var value = filed_title[module_id][$(this).attr('lang')];
						$(this).val(value);
                    });
				}
			});
			$('.delColumn').live('click',function(){
				$(this).parents('.table_addColumn').remove();
			});
			
			$('#addColumn').on('click',function(){
				$('.table_addColumn:eq(0)').clone().insertAfter('.table_addColumn:last');
			});
		});		
	</script>
	<!-- END JAVASCRIPTS -->   
</body>
<!-- END BODY -->
</html>